package org.ant.handler.typeChecking;


public class VarDesc{
	String name;
	String alias;
	String type;
	ClassDesc inClass;
	MethodDesc inMethod;
	
	public VarDesc(String name, String type) {
		super();
		this.name = name;
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}


	public ClassDesc getInClass() {
		return inClass;
	}

	public void setInClass(ClassDesc inClass) {
		if (inClass!=null){
			this.alias = this.name+"@"+inClass.className;
			this.inClass = inClass;
		}
	}

	public MethodDesc getInMethod() {
		return inMethod;
	}

	public void setInMethod(MethodDesc inMethod) {
		if (inMethod!=null){
			this.alias = this.name+"@"+inMethod.alias;
			this.inMethod = inMethod;
		}
	}

	
	
	
	
	
	
	
	
}